package org.huyue.huyuexia.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class User {
    private Integer id;
    private String username;
    private String passwordHash;
    private String nickname;
    private Integer followerCount;
    private Integer followingCount;
    /**
     * 当前豆子的余额
     * 使用BigDecimal来处理金融级别的数据，以确保精度准确无误
     */
    private Double beanBalance;
    private String avatarUrl;
    private String bio;
    private String wechatQrcodeUrl;
    private String wechatOpenid;
    private Integer status;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
}
